package com.gupao.redis;

import org.redisson.api.RRateLimiter;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RedissionManager {
	
	@Autowired
	private RedissonClient redissonClient;

//	public void setRedissonClient(RedissonClient redissonClient) {
//		this.redissonClient = redissonClient;
//	}

	public RRateLimiter getRRateLimiter(String key) {
		return redissonClient.getRateLimiter(key);
	}
}
